Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project domain id to identity credentials #89

Closed
wants to merge 1 commit into from

Conversation

hemanthnakkina-zz
Copy link

openrc downloaded from OpenStack horizon for a non-admin
user has OS_PROJECT_DOMAIN_ID set but not OS_PROJECT_DOMAIN_NAME.

Project domain ID details are added in Credentials structure.

Fixes: #88

openrc downloaded from OpenStack horizon for a non-admin
user has OS_PROJECT_DOMAIN_ID set but not OS_PROJECT_DOMAIN_NAME.

Project domain ID details are added in Credentials structure.

Fixes: go-goose#88
hemanthnakkina-zz pushed a commit to hemanthnakkina-zz/juju that referenced this pull request Mar 31, 2021
juju autoload-credentials ignores the OS_PROJECT_DOMAIN_ID if set
and looks for only OS_PROJECT_DOMAIN_NAME. However there are cases
where openrc downloaded from OpenStack Dashboard for non-admin user
sets only OS_PROJECT_DOMAIN_ID. In these cases juju bootstrap fails
with authentication error since juju is not aware of project domain
id and project domain name is empty.
This change reads OS_PROJECT_DOMAIN_ID and sets in CredentialsAttribute
map. The same have been passed to the client for authentication
purpose.

- This PR depends on PR submitted for go-goose package
  go-goose/goose#89

https://bugs.launchpad.net/juju/+bug/1772649
hemanthnakkina-zz pushed a commit to hemanthnakkina-zz/juju that referenced this pull request Mar 31, 2021
juju autoload-credentials ignores the OS_PROJECT_DOMAIN_ID if set
and looks for only OS_PROJECT_DOMAIN_NAME. However there are cases
where openrc downloaded from OpenStack Dashboard for non-admin user
sets only OS_PROJECT_DOMAIN_ID. In these cases juju bootstrap fails
with authentication error since juju is not aware of project domain
id and project domain name is empty.
This change reads OS_PROJECT_DOMAIN_ID and sets in CredentialsAttribute
map. The same have been passed to the client for authentication
purpose.

- This PR depends on PR submitted for go-goose package
  go-goose/goose#89

https://bugs.launchpad.net/juju/+bug/1772649

Fixes: LP#1772649
@hmlanigan hmlanigan self-requested a review April 1, 2021 15:46
hemanthnakkina-zz pushed a commit to hemanthnakkina-zz/juju that referenced this pull request Apr 5, 2021
juju autoload-credentials ignores the OS_PROJECT_DOMAIN_ID if set
and looks for only OS_PROJECT_DOMAIN_NAME. However there are cases
where openrc downloaded from OpenStack Dashboard for non-admin user
sets only OS_PROJECT_DOMAIN_ID. In these cases juju bootstrap fails
with authentication error since juju is not aware of project domain
id and project domain name is empty.
This change reads OS_PROJECT_DOMAIN_ID and sets in CredentialsAttribute
map. The same have been passed to the client for authentication
purpose.

- This PR depends on PR submitted for go-goose package
  go-goose/goose#89

https://bugs.launchpad.net/juju/+bug/1772649

Fixes: LP#1772649
@hmlanigan
Copy link
Member

@hemanthnakkina, this looks good, I'm waiting on the using pr, before approving it. autoload-credentials wasn't doing what the QA steps said it should be.

@hemanthnakkina-zz
Copy link
Author

@hemanthnakkina, this looks good, I'm waiting on the using pr, before approving it. autoload-credentials wasn't doing what the QA steps said it should be.

Hi I believe you are referring to QA steps in juju/juju#12838.
Just want to check if you have downloaded openrc for a non-admin user (or user with role member)?

I am on vacation and will be back on Apr 14th, can provide the exact steps with the output.

@SimonRichardson
Copy link
Member

@hmlanigan @hemanthnakkina is this close to merging?

@hmlanigan
Copy link
Member

Closing as it's stale now, please reopen when the juju issues have been addressed in the related PR

@hmlanigan hmlanigan closed this Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add projectdomainid to identity credentials
4 participants